package org.wzq;

import java.util.ArrayList;
import java.util.List;

/**
 * author:wzq
 * date:16-6-8
 * project:thread
 * description: TODO
 */
public class Application {

    private static int id = 1;

    public static void main(String[] args) {
        List<Object> container = new ArrayList<>();

        new Thread(new Producer(container, id++)).start();
        // new Thread(new Producer(container, id++)).start();


        // new Thread(new Consumer(container, id++)).start();
        // new Thread(new Consumer(container, id++)).start();
        new Thread(new Consumer(container, id++)).start();

    }
}
